﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Emu8080.Compiler;
using System.IO;

namespace Emu8080.Compiler.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            var s = File.ReadAllText("test.asm");
            var compiler = new Compiler(s);
            var a = compiler.Compile();
            foreach (var item in a.Module.GetMachineCodes())
            {
                Console.WriteLine(item.ToString("x2"));
                
            }
        }
    }
}
